<template>
    <div class="serve">
        <div class="content" style="padding: 10px;background-color: white;font-size: 15px;">
            <div style="width:100%;">
                <span v-html="contentDetail.content">
                    {{contentDetail.content}}
                </span>
                <!--<img style="width: 100%;height: 100%;"
                     :src="item.imgUrl"
                     v-for="item,key in regulationsData"
                     :key="key"
                />-->
            </div>
        </div>
    </div>
</template>
<script>
    import Cookies from 'js-cookie'
    import {isDev} from "../../utils/tools";
    import { Toast } from 'vant';
    export default {
        name: "serve",
        components: {},
        data() {
            return{
                menuId:'',
                contentDetail:{},
                count:1,
            }
        },
        mounted(){
            this.token = Cookies.get("token")
            this.menuId = 1
            isDev&&console.log(this.token);
            this.fetchStrategyDetail()
        },
        computed: {},
        methods: {
            fetchStrategyDetail(){
                this.$api.contentSet.contentSetDetail({id:this.menuId}).then(res=>{
                    // isDev&&console.log(res);
                    if(res.code==0){
                        isDev&&console.log(res.data);
                        this.contentDetail = res.data
                    }else{
                        console.log(res);
                    }
                }).catch(error=>{
                    console.log(this.error);
                })
            }
        }
    }
</script>

<!--<script>
    export default {
        name: "Regulations",
        data(){
            return{
                regulationsData:[
                    {
                        imgUrl:'/images/gg1.png'
                    },
                    {
                        imgUrl:'/images/gg2.png'
                    },
                    {
                        imgUrl:'/images/gg3.png'
                    },
                    {
                        imgUrl:'/images/gg4.png'
                    },
                    {
                        imgUrl:'/images/gg5.png'
                    },
                    {
                        imgUrl:'/images/gg6.png'
                    },
                ]
            }
        }
    }
</script>-->

<style scoped>
    .serve{

    }
</style>
